package server.database;

import java.util.ArrayList;
import java.util.List;

public class DatabaseColumn
{
	private final String m_sFieldName;
	private final String m_sFieldType;
	private final List<String> m_lstProperties;
	private final boolean m_bIsHidden;

	public DatabaseColumn(String sFieldName, String sFieldType)
	{
		this(sFieldName, sFieldType, new ArrayList<String>());
	}

	public DatabaseColumn(String sFieldName, String sFieldType, boolean bIsHidden)
	{
		this(sFieldName, sFieldType, new ArrayList<String>(), bIsHidden);
	}

	public DatabaseColumn(String sFieldName, String sFieldType, List<String> lstProperties)
	{
		this(sFieldName, sFieldType, lstProperties, false);
	}

	public DatabaseColumn(String sFieldName, String sFieldType, List<String> lstProperties, boolean bIsHidden)
	{
		m_sFieldName = sFieldName;
		m_sFieldType = sFieldType;
		m_lstProperties = lstProperties;
		m_bIsHidden = bIsHidden;
	}

	public String getName()
	{
		return m_sFieldName;
	}

	public String getType()
	{
		return m_sFieldType;
	}

	public List<String> getProperties()
	{
		return m_lstProperties;
	}

	public boolean isHidden()
	{
		return m_bIsHidden;
	}
}
